  $(".buttoncss3").click(function (id) {
        $("#delallpartdialog").css("display", "block");
    })

    $("#closeDialog").click(function (id) {
        $("#delallpartdialog").css("display", "none");
    })

  $("#deletebut2").click(function (id) {
      $("#delallpartdialog2").css("display", "none");
  })

  $("#deletebut").click(function (id) {
      $("#delallpartdialog").css("display", "none");
      console.log("delete2");
      $.ajax({
          url:"/yuanwen/deleteyw",
          type:"post",
          data:{
              objectid:objectval,
              numberpage:pagenow
          },
          success: function (data) {
              $("#span2").text(data);
              $("#delallpartdialog2").css("display", "block");
              $('#'+objectval).parentsUntil('tbody').remove();
          }
      })
  })

    function ShowTip(tip, type) {
        var $tip = $('#tipChjy');
        if ($tip.length == 0) {
            // 设置样式，也可以定义在css文件中
            // '<img src="img/tips.png" style="position:fixed;top:50px;left: 50%;z-index:9999;padding: 0 20px;line-height: 35px;height: 30px;width: 30px" >'
            $tip = $('<span id="tipChjy" style="position:fixed;top:50px;left: 50%;z-index:9999;height: 35px;padding: 0 20px;line-height: 35px;background-color: rgba(65, 65, 65, 0.7); "></span>');
            $('body').append($tip);
        }
        $tip.stop(true).prop('class', 'alert alert-' + type).text(tip).css('margin-left', -$tip.outerWidth() / 2).fadeIn(500).delay(2000).fadeOut(500);//设置显示位置和显示时间和消失时间
    }

    function ShowMsg(msg) {
        ShowTip(msg, 'info');
    }

    function ShowSuccess(msg) {
        ShowTip(msg, 'success');
    }

    function ShowFailure(msg) {
        ShowTip(msg, 'danger');
    }

    function ShowWarn(msg, $focus, clear) {
        ShowTip(msg, 'warning');
        if ($focus) {
            $focus.focus();
            if (clear) $focus.val('');
        }
        return false;
    }